<?php
class PlantSpeedUpAction extends SzAbstractAction
{
    protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_ARRAY,
        SzAbstractAction::TYPE_INT
    );

    /**
     * @param $userId
     * @param $gridIds
     * @param $reqTime
     * @return SzResponse
     * @throws SzException
     */
    public function execute($userId, $gridIds, $reqTime)
    {
        foreach ($gridIds as $gridId) {
            PlantService::get()->speedUp($userId, $gridId, $reqTime);
        }
        return $this->buildResponse(
            true
        );
    }
}